﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using INSE6260.OnlineBanking.Model.EmploymentType;

namespace INSE6260.OnlineBanking.Repository.EF.Mappings
{
    public class EmploymentTypeConfiguration : EntityTypeConfiguration<EmploymentType>
    {
        public EmploymentTypeConfiguration()
        {					
    		this.HasKey(t => t.Id);		
    		this.ToTable("EmploymentType");
    		this.Property(t => t.Id).HasColumnName("Id");
    		this.Property(t => t.Name).HasColumnName("Name").IsRequired().IsUnicode(false).HasMaxLength(50);
    	}
    }
}
